<template>
  <div id="app">
    <router-view></router-view>
    <!--显示路由页面-->
    <van-tabbar
      route
      active-color="pink"
      inactive-color="#000000"
      v-show="$route.meta.showTabbar"
    >
      <!--公共组件-->
      <van-tabbar-item :to="{ name: 'Index' }" icon="home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item :to="{ name: 'Sort' }" icon="search"
        >分类</van-tabbar-item
      >
      <van-tabbar-item :to="{ name: 'Cart' }" icon="friends-o"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item :to="{ name: 'My' }" icon="setting-o"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {};
  },
  components: {},
};
</script>

<style></style>
